package com.y2.authprj.dao.auth;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.y2.authprj.bean.auth.model.SysroleInfo;
import com.y2.authprj.bean.auth.vo.PageSysrole;
import com.y2.authprj.bean.auth.vo.UserroleVo;
import com.y2.authprj.bean.auth.vo.showSysroleAndRoleAuthorityVo;

public interface ISysroleDao {
	List<SysroleInfo> findAllSysrole();
	int addSysrole(SysroleInfo sysroleInfo);
	void deleteSysrole(int roleId);
	int updateSysrole(SysroleInfo sysroleInfo);
	List<SysroleInfo> findSysroleByChoose(PageSysrole pageSysrole);
	int findSysroleTopOne();
	List<SysroleInfo> findByName(@Param("name") String name);
	List<showSysroleAndRoleAuthorityVo> findSysroleAndRoleAuthority();
	SysroleInfo findSysroleByRoleId(@Param("roleId") int roleId);
	List<showSysroleAndRoleAuthorityVo> findSysroleAndRoleAuthorityBySysId(@Param("roleId") int roleId);



	SysroleInfo findById(int id);
	
	
	List<SysroleInfo> findBySysrole(UserroleVo vo);
	int findCount(UserroleVo vo);


}	
